import request from "@/router/axios";

// 获取路径列表
export const getPathList = (params) =>
  request({
    url: "/api/admin/lineTpl/pagination",
    method: "get",
    params: params,
  });

// 获取用户搜索
export const getUserSearch = (params) =>
  request({
    url: "/api/admin/lineTpl/notFund",
    method: "get",
    params: params,
  });

// 获取地区树
export const getAreaTree = (params) =>
  request({
    url: "/api/admin/common/areas",
    method: "get",
    params: params,
  });

// 新增路径管理
export const addLineTpl = (data) =>
  request({
    url: "/api/admin/lineTpl/save",
    method: "post",
    data: data,
  });

// 新增路径管理
export const delShopItem = (data) =>
  request({
    url: "/api/admin/lineTpl/delete/" + data,
    method: "delete",
    data: data,
  });

  // 编辑线路价格
  export const editLinePrice = (data) =>
  request({
    url: "/api/admin/lineTpl/save?id=" + data.id,
    method: "post",
    data: data,
  });


  // 获取代理商列表
  export const getAgentList = (params) =>
  request({
    url: "/api/admin/user/getAgentList",
    method: "get",
    params: params,
  });